package com.situ.day1.bird;

import org.junit.Test;

public class Demo {
    public static void main(String[] args) {
        DaYan daYan = new DaYan();
        daYan.egg();
        daYan.fly();
        daYan.show();
        //现在是站在抽象的鸟的角度去看大雁
        AbstractBird bird = new DaYan();
        bird.egg();
        IFly fly = new DaYan();
        fly.fly();
        //fly.egg();

        fei(daYan);
    }

    public static void fei(IFly fly) {
        fly.fly();
    }

    @Test
    public void test1() {
        Student student = new Student();
        student.id = 12;
        student.name = "zhangsan";
        student.show();

        student.country = "中国";
        Student.country = "zhongguo";

    }
}
